package com.channel.springcloud.service;

import com.channel.springcloud.model.APIResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("springcloud-service-goods")
@Component
public interface GoodsRemoteClient {
    /**
     * 学习Fegin
     * 声明Fegin的一个接口，他的实现是服务提供者的controller实现
     * @return
     */
    @RequestMapping("/service/goods")
    public APIResult goods();
}
